package com.htc.android.footprints.commonui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.ImageView;
import android.widget.TextView;

import com.htc.android.footprints.utils.StorageUtil;

public class SDCardConfirmDialog extends Activity
{
  private ImageView mIcon;
  private TextView msgText;

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    requestWindowFeature(1);
    setContentView(2130903072);
    this.msgText = ((TextView)findViewById(2131492890));
    String str = getIntent().getStringExtra("DATA");
    this.msgText.setText(str);
    this.mIcon = ((ImageView)findViewById(2131492864));
    if (str.equals(getResources().getString(2131361955)))
      this.mIcon.setImageResource(2130837734);
    while (true)
    {
      StorageUtil localStorageUtil = new StorageUtil(getApplicationContext());
      localStorageUtil.SetOnChangeStorageListerner(new StorageUtil.OnChangeStorageListener(localStorageUtil)
      {
        public void onStorageChanged(int paramInt)
        {
          if ((paramInt == 1) && (StorageUtil.hasExternalStorage()))
          {
            this.val$storageUtil.closeStorgaeUtil();
            SDCardConfirmDialog.this.finish();
          }
        }
      });
      localStorageUtil.startStorageUtil();
      return;
      this.mIcon.setImageResource(2130837689);
    }
  }

  public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
  {
    if (paramInt == 4)
    {
      Intent localIntent = new Intent("android.intent.action.MAIN");
      localIntent.addCategory("android.intent.category.HOME");
      localIntent.setFlags(67108864);
      startActivity(localIntent);
      finish();
    }
    for (int i = 1; ; i = 0)
      return i;
  }
}

/* Location:           E:\workspace\dex2java\dex-translator-0.0.9.3\HtcFootprints_dex2jar.jar
 * Qualified Name:     com.htc.android.footprints.commonui.SDCardConfirmDialog
 * JD-Core Version:    0.6.0
 */